#include "QtWidgetsTestX.h"
#include <QtWidgets/QApplication>

#include "QtWidgetsDev.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    QtWidgetsTestX w;

    QtWidgetsDev devDialog;

    QObject::connect(&devDialog, &QtWidgetsDev::sig_devTypeComboBox_changed, &w, &QtWidgetsTestX::on_devNameFromDialog_changed);

    if (devDialog.exec() && QDialog::Accepted) {
        w.show();
        return a.exec();
    }

    return 0;
}
